<? 
foreach ($input_id as $tooltip_bubble) {
echo <<<EOD
<script type="text/javascript">
	$(function(){
	  var jfk = $("[name='bubble-$tooltip_bubble']"); 
	  var obj = $("#$tooltip_bubble");
	  var pos = obj.position();
	  var width = obj.width();
	  var height = obj.height();
	  $(document).ready(function(){
	    jfk.css({"top":pos.top-height/2,"left":pos.left+19+width});
     });
	  obj.focus(function(){
 	    jfk.addClass("active");
	  }).blur(function(){
	    jfk.removeClass("active");
	  });
	});
</script>
EOD;
}